package com.ruoyi.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teacher.mapper.TeacherInformationDetailMapper;
import com.ruoyi.teacher.domain.TeacherInformationDetail;
import com.ruoyi.teacher.service.ITeacherInformationDetailService;

/**
 * 资料信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-01
 */
@Service
public class TeacherInformationDetailServiceImpl implements ITeacherInformationDetailService 
{
    @Autowired
    private TeacherInformationDetailMapper teacherInformationDetailMapper;

    /**
     * 查询资料信息
     * 
     * @param id 资料信息主键
     * @return 资料信息
     */
    @Override
    public TeacherInformationDetail selectTeacherInformationDetailById(Long id)
    {
        return teacherInformationDetailMapper.selectTeacherInformationDetailById(id);
    }

    /**
     * 查询资料信息列表
     * 
     * @param teacherInformationDetail 资料信息
     * @return 资料信息
     */
    @Override
    public List<TeacherInformationDetail> selectTeacherInformationDetailList(TeacherInformationDetail teacherInformationDetail)
    {
        return teacherInformationDetailMapper.selectTeacherInformationDetailList(teacherInformationDetail);
    }

    /**
     * 新增资料信息
     * 
     * @param teacherInformationDetail 资料信息
     * @return 结果
     */
    @Override
    public int insertTeacherInformationDetail(TeacherInformationDetail teacherInformationDetail)
    {
        return teacherInformationDetailMapper.insertTeacherInformationDetail(teacherInformationDetail);
    }

    /**
     * 修改资料信息
     * 
     * @param teacherInformationDetail 资料信息
     * @return 结果
     */
    @Override
    public int updateTeacherInformationDetail(TeacherInformationDetail teacherInformationDetail)
    {
        return teacherInformationDetailMapper.updateTeacherInformationDetail(teacherInformationDetail);
    }

    /**
     * 批量删除资料信息
     * 
     * @param ids 需要删除的资料信息主键
     * @return 结果
     */
    @Override
    public int deleteTeacherInformationDetailByIds(Long[] ids)
    {
        return teacherInformationDetailMapper.deleteTeacherInformationDetailByIds(ids);
    }

    /**
     * 删除资料信息信息
     * 
     * @param id 资料信息主键
     * @return 结果
     */
    @Override
    public int deleteTeacherInformationDetailById(Long id)
    {
        return teacherInformationDetailMapper.deleteTeacherInformationDetailById(id);
    }
}
